const Order = {
  path: "/order",
  meta: {
    title: "订单处理",
    sort: 3,
  },
  redirect: "/order/road/process",
  img: new URL("@/assets/image/ico/order.png", import.meta.url).href,
  imgActive: new URL(
    "@/assets/image/ico/order-blue.png",
    import.meta.url
  ).href,
  children: [
    {
      path: "/order/road",
      meta: {
        title: "路内停车",
        sort: 1,
      },
      children: [
        {
          path: "/order/road/process",
          meta: {
            title: "进行中订单",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/order/roadsideOrders/roadsideOngoingOrders/index.vue"
            ),
        },
        {
          path: "/order/road/finished",
          meta: {
            title: "已完成订单",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/order/roadsideOrders/roadsideCompletedOrder/index.vue"
            ),
        },
        {
          path: "/order/road/unpaid",
          meta: {
            title: "待补缴订单",
            sort: 3,
          },
          component: () =>
            import(
              "@/view/order/roadsideOrders/outstandingOrders/index.vue"
            ),
        },
        {
          path: "/order/road/uncheck",
          meta: {
            title: "未登记订单",
            sort: 4,
          },
          component: () =>
            import(
              "@/view/order/roadsideOrders/unregisteredOrders/index.vue"
            ),
        },
      ],
    },
    {
      path: "/order/park",
      meta: {
        title: "场库停车",
        sort: 2,
      },
      children: [
        {
          path: "/order/park/process",
          meta: {
            title: "进行中",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/order/cparkOrders/cparkOngoingOrders/index.vue"
            ),
        },
        {
          path: "/order/park/finished",
          meta: {
            title: "已完成订单",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/order/cparkOrders/cparkCompletedOrder/index.vue"
            ),
        },
      ],
    },
  ],
};

export default Order;
